package com.brainhealth.customer.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.brainhealth.common.annotation.Excel;
import com.brainhealth.common.core.domain.BaseEntity;

/**
 * 积分消耗记录对象 score_consume_record
 * 
 * @author ruoyi
 * @date 2023-11-06
 */
public class ScoreConsumeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 积分消耗记录表主键 */
    private Long id;

    /** 积分消耗记录ID */
    @Excel(name = "积分消耗记录ID")
    private Long scoreConsumeRecordId;

    /** 积分商城订单ID */
    @Excel(name = "积分商城订单ID")
    private String scoreMallOrderId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long customerId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String goodsImg;

    /** 商品积分 */
    @Excel(name = "商品积分")
    private Long score;

    /** 积分消耗描述 */
    @Excel(name = "积分消耗描述")
    private String scoreDesc;

    /** 是否删除0:未删除 1：已删除 */
    @Excel(name = "是否删除0:未删除 1：已删除")
    private Integer yn;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createUser;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updateUser;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setScoreConsumeRecordId(Long scoreConsumeRecordId) 
    {
        this.scoreConsumeRecordId = scoreConsumeRecordId;
    }

    public Long getScoreConsumeRecordId() 
    {
        return scoreConsumeRecordId;
    }
    public void setScoreMallOrderId(String scoreMallOrderId) 
    {
        this.scoreMallOrderId = scoreMallOrderId;
    }

    public String getScoreMallOrderId() 
    {
        return scoreMallOrderId;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }
    public void setGoodsImg(String goodsImg) 
    {
        this.goodsImg = goodsImg;
    }

    public String getGoodsImg() 
    {
        return goodsImg;
    }

    public Long getScore() {
        return score;
    }

    public void setScore(Long score) {
        this.score = score;
    }

    public String getScoreDesc() {
        return scoreDesc;
    }

    public void setScoreDesc(String scoreDesc) {
        this.scoreDesc = scoreDesc;
    }

    public void setYn(Integer yn)
    {
        this.yn = yn;
    }

    public Integer getYn() 
    {
        return yn;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("scoreConsumeRecordId", getScoreConsumeRecordId())
            .append("scoreMallOrderId", getScoreMallOrderId())
            .append("customerId", getCustomerId())
            .append("goodsName", getGoodsName())
            .append("goodsImg", getGoodsImg())
            .append("score", getScore())
            .append("scoreConsumeDesc", getScoreDesc())
            .append("yn", getYn())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("updateUser", getUpdateUser())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
